

import request from "@/api/request"

// 请求购物车列表数据
function cartList(data) {
    return request({
        url: "/cart/cartList",
        method: "get",
        data 
    })
}

// 添加购物车数据
function addCart(data) {
    return request({
        url: "/cart/addCart",
        method: "post",
        data 
    })
}

// 删除购物车数据
function deleteAction(data) {
    return request({
        url: "/cart/deleteAction",
        method: "get",
        data 
    })
}

export{
    cartList,
    addCart,
    deleteAction
}



